







package org.nstack.core.errorcode.schema;

import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;



@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "prefix",
    "code"
})
@XmlRootElement(name = "error")
public class Error {

    @XmlElement(required = true)
    protected String prefix;
    protected List<Error.Code> code;


    public String getPrefix() {
        return prefix;
    }


    public void setPrefix(String value) {
        this.prefix = value;
    }


    public List<Error.Code> getCode() {
        if (code == null) {
            code = new ArrayList<Error.Code>();
        }
        return this.code;
    }



    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "id",
        "description",
        "elaboration"
    })
    public static class Code {

        protected int id;
        @XmlElement(required = true)
        protected String description;
        @XmlElement(required = true)
        protected String elaboration;


        public int getId() {
            return id;
        }


        public void setId(int value) {
            this.id = value;
        }


        public String getDescription() {
            return description;
        }


        public void setDescription(String value) {
            this.description = value;
        }


        public String getElaboration() {
            return elaboration;
        }


        public void setElaboration(String value) {
            this.elaboration = value;
        }

    }

}
